const { LibManifestPlugin } = require("webpack");
const path = require('path');

module.exports = {
  entry: {
    main: "./main.js",
    testAnimation: "./src/components/Carousel/testAnimation.js"
  },
  output: {
    path: path.resolve(__dirname, "dist"),
    filename: "[name].js"
  },
  module: {
    rules: [
      {
        test: /\.js$/,
        use: {
          loader: "babel-loader",
          options: {
            presets: ["@babel/preset-env"],
            plugins: [["@babel/plugin-transform-react-jsx", {pragma:"createElement"}]]
          }
        }
      }
    ]
  },
  devServer: {
    static: {
      directory: path.join(__dirname, "dist")
    },
    compress: true,
    port: 8080
  },
  mode: "development"
}